package org.example.service;
        import org.example.dao.StudentDao;
        import org.example.entity.Student;
        import org.springframework.beans.factory.annotation.Autowired;
        import org.springframework.stereotype.Service;
        import java.util.List;
@Service
 public class StudentServiceImpl implements StudentService{
@Autowired
 private StudentDao studentDao;
@Override
 public void createTableStudent() {
         studentDao.createTableStudent();
         }
@Override
 public int saveStudent(Student student){
         return studentDao.saveStudent(student);
         }
@Override
 public List<Student> getAllStudent() {
        return studentDao.getAllStudent();
        }
@Override
 public Student getStudentById(String id){
         return studentDao.getStudentById(id);
         }
@Override
 public int updateStudent(Student student){
         return studentDao.updateStudent(student);
         }
@Override
 public int deleteStudent(String id) {
         return studentDao.deleteStudent(id);
         }
         }